<div class="container">
    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <div class="login-panel panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">Please Sign In</h3>
                </div>
                <div class="panel-body">
					<?php if ($this->messages): ?>
					<div class="error-block error-text padBt15"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button><?php echo $this->messages; ?></div>
					<?php endif; ?>

					<?php
					$form = $this->form;
					$form->setAttribute('action', $this->url('auth/default', array('controller' => 'index', 'action' => 'login')));
					$form->prepare();

					echo $this->form()->openTag($form);
					?>
                    <form role="form">
                        <fieldset>
                            <div class="form-group">
<!--                                <input class="form-control" placeholder="E-mail" name="email" type="email" autofocus>-->
								<?php echo $this->formRow($form->get('username'), null, false); ?>
								<?php
								echo $this->formElementErrorFlash($form->get('username'), array('class' => 'error-block error-text'), array('close_flg' => TRUE));
								?>
                            </div>
                            <div class="form-group">
<!--                                <input class="form-control" placeholder="Password" name="password" type="password" value="">-->
								<?php echo $this->formRow($form->get('password'), null, false); ?>
								<?php
								echo $this->formElementErrorFlash($form->get('password'), array('class' => 'error-block error-text'), array('close_flg' => TRUE));
								?>
                            </div>
                            <div class="checkbox">
								<?php echo $this->formRow($form->get('rememberme'), 'append'); ?>
                            </div>
                            <!-- Change this to a button or input when using this as a form -->
							<?php echo $this->formSubmit($form->get('submit')); ?>
                        </fieldset>
						<?php echo $this->form()->closeTag(); ?>
                </div>
            </div>
        </div>
    </div>
</div>